package org.csu.jpetstore_users_backend_pj;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication
@MapperScan("org.csu.jpetstore_users_backend_pj.mapper")
public class JpetstoreUsersBackendPjApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(JpetstoreUsersBackendPjApplication.class, args);
    }

    @Override // 重写这个方法
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(JpetstoreUsersBackendPjApplication.class);
    }
}
